export default [
  {
    path: '/',
    name: 'index',
    redirect: '/login'
  },
  {
    path: '/login',
    name: 'login',
    component: () => import(/* webpackChunkName: "login" */'../views/Login')
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('../views/home/Home'),
    children: [
      {
        path: '/admin/accountlist',
        name: 'accountlist',
        component: () => import('../views/admin/Accountlist')
      },
      {
        path: '/admin/createnewaccount',
        name: 'createnewaccount',
        component: () => import('../views/admin/Createnewaccount')
      },
      {
        path: '/admin/viewlog',
        name: 'viewlog',
        component: () => import('../views/admin/Viewlog')
      },
      {
        path: 'staticpageslist',
        name: 'staticpageslist',
        component: () => import('../views/home/Staticpageslist')
      },
      {
        path: 'pagemodulelist',
        name: 'pagemodulelist',
        component: () => import('../views/home/Pagemodulelist')
      },
      {
        path: 'createpagemodule',
        name: 'createpagemodule',
        component: () => import('../views/home/Createpagemodule')
      },
      {
        path: 'createnewpage',
        name: 'createnewpage',
        component: () => import('../views/home/Createnewpage')
      },
      {
        path: 'autotasklist',
        name: 'autotasklist',
        component: () => import('../views/home/Autotasklist')
      }
    ]
  },
  {
    path: '*',
    name: '404',
    component: () => import(/* webpackChunkName: "404" */'../views/404')
  }
]
